<?php
/**
 * 跟进模型
 * @Author: wjf
 * @Date: 2022-12-01 15:51:52
 */

namespace app\crm\model\clue;

use think\Model;

class Followll extends Model
{
      /**
     * 设置当前模型对应的完整数据表名称 
     * @Author: wjf
     * @Date: 2022-11-26 15:03:14
    */ 
    protected $table = 'crm_classify_follow';
    
    protected $auto = ['classify' => 2];

    public function getGetTimeAttr($value)
    {
        return date('Y-m-d H:i:s',$value);
    }
    
    public function setScheduleTimeAttr ($value)
    {
        return strtotime($value);
    }
    public function getScheduleTimeAttr($value)
    {
        return date('Y-m-d H:i:s',$value);
    } 
    public function getTypeAttr($value,$data)
    {
        $status = [0 => '电话', 1 => '微信', 2 => '短信', 3 => '上门拜访'];
        return $status[$data['type']];
    }
}